home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / apidev / int24.arc / TEST24.ASM < prev    next >
Assembly Source File  |  1988-01-06  |  554b  |  32 lines

  1.       name    TestFile
  2.  
  3. CGroup    group    Code
  4.     assume    cs: CGroup
  5.  
  6. Code    segment 'CODE'
  7.     jmp    Main
  8.  
  9.     extrn    InstallINT24: near
  10.  
  11. PromptMsg    db    0Dh, 0Ah,'Unplug cable and press a key.$'
  12. File        db    'Z:TEST.TXT',0
  13.  
  14. Main    proc    near
  15.     call    InstallINT24    ;Install my INT 24h handler
  16.  
  17.     mov    dx, offset CGroup: PromptMsg
  18.     mov    ah, 09h
  19.     int    21h
  20.     mov    ah, 01h        ;Get a key stroke
  21.     int    21h
  22.     mov    ax, 3d42h    ;Open a file that would be on a network drive
  23.     mov    dx, offset CGroup: File
  24.     int    21h
  25.     mov    ax, 4c01h    ;terminate process
  26.     int    21h
  27. Main    endp
  28.  
  29. CODE    ends
  30.     end
  31.  
  32.